<extend name = "Common/baseView"/>
 <block name="css">
 	<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
 	<style type="text/css">
 		.containe{ width:900px;margin:100px auto;}
 		.table{text-align:left;margin-top: 20px;}
 		.btn{background: #009688 ;color: #fff;display: block;float: right;}
		a:hover{
			text-decoration: none;
		}
 	</style>
 </block>
<block name="body">
	  <div class="containe">
	  <table class="table table-bordered">
	  	<tr>
	  		<td width="100px">用户ID</td>
	  		<td colspan="2">{$users.id}</td>
	  		
	  	</tr>
	  	<tr>
	  		<td>用户名</td>
	  		<td colspan="2">{$users.name}</td>
	  	</tr>
	  	<tr>
	  		<td>订单ID</td>
	  		<td colspan="2">{$orders.id}</td>
	  	
	  	</tr>
	  	<tr>
	  		<td>订单号</td>
	  		<td colspan="2">{$orders.order_no}</td>
	  	</tr>
	  	<tr >
	  		<td rowspan="3">商品总数量</td>
	  		<td colspan="2">{$orders.order_sum}</td>
	  		
	  	</tr>

	  	<tr>
	  		<td width="100px" rowspan="2">商品名称</td>
	  		<td rowspan="2">
	  			<foreach name="goods" item="value" key="key">
	  	     	{$value.goods_name}<?php echo '('.$value['goods_num'].')';echo '&nbsp;,&nbsp;';?>
	  		</foreach>
	  	     </td>
	  	</tr>
	  	<tr></tr>
	  	<tr>
	  		<td>商品总价格</td>
	  		<td colspan="2">{$orders.order_price}</td>
	  		
	  	</tr>
	  	<tr>
	  		<td>配送方式</td>
	  		<td colspan="2">{$orders.send_type}</td>
	  	</tr>
	  	<tr>
	  		<td>订单状态</td>
	  		<?php 
     			   if($orders['status']==0)
     			        $sta1='未支付';
     			   elseif($orders['status']==1)
     			         $sta1='已支付'; 
     			       else  $sta1='退货';
                ?>
     			<td colspan="2">{$sta1}</td>
	  	</tr>
	  	<tr>
	  		<td>物流状态</td>
	  		 <?php 
                  if($goods['son']['status']==0)
     			      $sta2='未派送';
     			  elseif($goods['son']['status']==1)  
     			      $sta2='派送中'; 
     			 else $sta2='已送达';
     			 ?>
     			<td colspan="2">{$sta2} </td>
	  	</tr>
	  	<tr>
	  	<td>物流单号</td>
	  	<td colspan="2">{$orders.logistics_no}</td>
	  </tr>
	  	<tr>
	  		<td>创建时间</td>
	  		<td colspan="2">{$orders.create_time|date="Y-m-d H:m:s",###}</td>
	  	</tr>
       
	  </table>
	  <a href="{:U(userOrders)}" class="btn">返回</a>
	</div>
	<script>
		$('#orderlist').addClass("layui-this");
		$('#user').addClass("layui-nav-itemed");
	</script>
</block>